#include"Tree.h"
void TreeSeq(Tree* test)
{
	if (test == NULL)
	{
		printf("N");
		return ;
	}
	printf("%d", test->data);
	TreeSeq(test->left);
	TreeSeq(test->right);
}
void test()
{
	Tree test1;
	Tree* p1 = Treeinit(&test1, 1);
	Tree* p2 = Treeinit(&test1, 2);
	Tree* p3 = Treeinit(&test1, 3);
	Tree* p4 = Treeinit(&test1, 4);
	Tree* p5 = Treeinit(&test1, 5);
	Tree* p6 = Treeinit(&test1, 6);
	p1->left = p2;
	p1->right = p3;
	p2->left = p4;
	p2->right = p5;
	p3->left = p6;
	TreeSeq(p1);
	//TreeDestory(&test1);
}
int main()
{
	test();
	return 0;
}